package com.itheima.utils;

import com.itheima.domain.vo.LoginUserInfo;

public class ThreadUtil {
    private static final ThreadLocal<LoginUserInfo> thread = new ThreadLocal<>();

    public static void set(LoginUserInfo loginUserInfo){
        thread.set(loginUserInfo);
    }

    public static LoginUserInfo get(){
        return thread.get();
    }

    public static void remove(){
        thread.remove();
    }
}
